{extends file = "assets::smarty-templates::Master"|ToPath}

{block name="title"}Papelera / Buques{/block}

{block name="page-id"}papelera-buques-page{/block}

{block name="content"}
<ul data-role="listview" class="list" data-filter="true" data-inset="false" data-split-icon="check">
    {foreach $buques as $buque}
        <li>
            <a>
                <h2 class="nombre">{$buque->getNombre()}</h2>
                <p>
                    <strong>N&deg; oficial: </strong>{$buque->getNumeroOficial()}
                    <strong>IMO: </strong>{$buque->getImo()}
                    <strong>Bandera: </strong>{$buque->getPaises()->getBandera()}
                    <strong>Linea: </strong>[{$buque->getLineas()->getAbreviatura()}] {$buque->getLineas()->getNombre()}
                </p>
            </a>
            <a href="{url call='Papelera::RestaurarBuques::restaurar' id=$buque->getIdBuque()}">Restaurar</a>
        </li>
    {foreachelse}
        <li>
            No hay buques eliminados.
        </li>
    {/foreach}
</ul>
{/block}